2469. Convert the Temperature 發表於 2023-02-13 | 分類於 leetcode problemsolution123456789class Solution {public: vector<double> convertTemperature(double celsius) { vector<double> ret(2,0); ret[0] = celsius+273.15; ret[1] = celsius*1.80 + 32.0; return ret; }}; analysis time complexity O(1) space complexity O(1)